package com.lzw.breezeNovel.model.entity.pojo.message;

import com.lzw.breezeNovel.model.entity.pojo.user.UserInfo;
import com.lzw.breezeNovel.model.entity.query.BaseQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author 清风明月
 * @Package com.lzw.breezeNovel.model.entity.pojo
 * @date 2025/3/15
 * @description 消息实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class Message extends BaseQuery {

    @Schema(description = "消息ID，主键")
    private Long messageId;

    @Schema(description = "发送者ID")
    private Long senderId;

    @Schema(description = "接收者ID")
    private Long receiverId;

    @Schema(description = "消息内容")
    private String content;

    @Schema(description = "发送时间")
    private Date sendTime;

    @Schema(description = "消息状态，0:未读，1:已读，2:已删除")
    private Integer status;

    @Schema(description = "是否删除，0:未删除，1:已删除")
    private Long isDeleted;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "更新时间")
    private Date updateTime;

    @Schema(description = "消息的类型")
    private Integer type;

    @Schema(description = "发送的人")
    private UserInfo userInfo;
}